NAME		:= libuser.a
SRC			= *.S *.c libm/ libx/ libc/string/ libc/stdio/ libc/stdlib/ libc/ctype/ libc/errno/ libc/malloc/ libc/exit/ libc/fenv/ libc/stat/ libc/time/ gato/render/ cJSON/
X_INCDIRS	= $(obj)/include $(obj)/libc/include $(obj)/libx/include $(obj)/gato/include

TARGET_TYPE	:= static

define CUSTOM_TARGET_CMD
echo [AR] $@; \
$(AR) rc $@ $(filter $(X_OBJS), $^);\
cp $@ $(objtree)/rootfs/lib; \
cp $(obj)/include/* $(objtree)/rootfs/usr/include -r; \
cp $(obj)/libc/include/* $(objtree)/rootfs/usr/include -r; \
cp $(obj)/libx/include/* $(objtree)/rootfs/usr/include -r; \
cp $(obj)/gato/include/* $(objtree)/rootfs/usr/include -r
endef